//package com.aliyun.mgt.service.impl;
//
//import MessageRecordService;
//import com.aliyun.mgt.account.domain.model.query.MessageRecordQueryDTO;
//import com.aliyun.mgt.account.domain.model.query.MsgHandleLogQuery;
//import com.aliyun.mgt.account.domain.model.query.MsgPushResultsQuery;
//import com.aliyun.mgt.account.domain.model.query.MyMsgQueryDTO;
//import com.aliyun.mgt.account.domain.model.vo.DepVo;
//import com.aliyun.mgt.account.domain.model.vo.MessageRecordReturnVO;
//import com.aliyun.mgt.account.domain.model.vo.MsgPushResultsQueryVO;
//import com.aliyun.mgt.account.domain.model.vo.MyMsgVO;
//import com.github.pagehelper.Page;
//import org.junit.Test;
//import org.junit.runner.RunWith;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.test.context.SpringBootTest;
//import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;
//import org.springframework.test.context.junit4.SpringRunner;
//
//import java.util.Date;
//import java.util.List;
//
///**
// * Created with IDEA
// *
// * @author:niulei
// * @date:2019/4/16
// * @time:10:41
// */
//@SpringBootTest
//@RunWith(SpringRunner.class)
//public class MessageRecordServiceImplTest extends AbstractTransactionalJUnit4SpringContextTests {
//
//    @Autowired
//    private MessageRecordService messageRecordService;
//
//    @Test
//    public void selectMessageRecordTest() {
//        MessageRecordQueryDTO messageRecordQueryDTO = new MessageRecordQueryDTO();
//        messageRecordQueryDTO.setTimeCreateStart("2020-12-01");
//        messageRecordQueryDTO.setTimeCreateEnd("2020-12-02");
//        Page<MessageRecordReturnVO> messageRecordReturnVOS = messageRecordService.selectMessageRecord(messageRecordQueryDTO);
//    }
//
//    @Test
//    public void messageListOwnerDeptTest() {
//        MessageRecordQueryDTO messageRecordQueryDTO = new MessageRecordQueryDTO();
//        messageRecordQueryDTO.setTimeCreateStart("2020-12-01");
//        messageRecordQueryDTO.setTimeCreateEnd("2020-12-02");
//        List<DepVo> depVos = messageRecordService.messageListOwnerDept(messageRecordQueryDTO);
//    }
//
//    @Test
//    public void messageListMyMsgsTest() {
//        MyMsgQueryDTO myMsgQueryDTO = new MyMsgQueryDTO();
//        myMsgQueryDTO.setMsgSourceName("q_q");
//        myMsgQueryDTO.setPushChannelName("a_a");
//        myMsgQueryDTO.setTimeAscOrDesc("desc");
//        Page<MyMsgVO> myMsgVOS = messageRecordService.messageListMyMsgs(myMsgQueryDTO);
//    }
//
//    @Test
//    public void listMsgPushResultsTest() {
//        MsgPushResultsQuery msgPushResultsQuery = new MsgPushResultsQuery();
//        Page<MsgPushResultsQueryVO> msgPushResultsQueryVOS = messageRecordService.listMsgPushResults(msgPushResultsQuery);
//    }
//
//    @Test
//    public void updateMsgHandleLogStateReadTest() {
//        MsgHandleLogQuery msgHandleLogQuery = new MsgHandleLogQuery();
//        msgHandleLogQuery.setReadStates(1);
//        msgHandleLogQuery.setReadTime(new Date());
//        msgHandleLogQuery.setMsgId(5);
//        msgHandleLogQuery.setReceiverId("13346942504");
//        int i = messageRecordService.updateMsgHandleLogStateRead(msgHandleLogQuery);
//    }
//
//    @Test
//    public void messageArchiveTest() {
//        messageRecordService.messageArchive();
//    }
//
//    @Test
//    public void countMessageRecordQueryTest() {
//        MessageRecordQueryDTO messageRecordQueryDTO = new MessageRecordQueryDTO();
//        messageRecordQueryDTO.setTimeCreateStart("2020-12-01");
//        messageRecordQueryDTO.setTimeCreateEnd("2020-12-02");
//        int i = messageRecordService.countMessageRecordQuery(messageRecordQueryDTO);
//    }
//}